package com.gitee.wsl.jvm.net.server

//import android.content.Context
import com.gitee.wsl.struct.router.Method
import java.io.InputStream
import java.net.CookieHandler

interface IHTTPSession {
    //val context: Context
    val cookies: CookieHandler
    val headers: Map<String, String>
    val method: Method
    val parameters: Map<String, List<String>>
    val query: Map<String, String>

    /**
     * @return the path part of the URL.
     */
    val uri: String

    /**
     * Get the remote ip address of the requester.
     *
     * @return the IP address.
     */
    val remoteIpAddress: String
    val requestBody: String
    val path: String

    val inputStream: InputStream?

    var response: Response?

}